# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php82-pecl-teds
_extname=teds
pkgver=1.3.0
pkgrel=0
pkgdesc="PHP 8.2 extra data structures and iterable/array functionality - PECL"
url="https://pecl.php.net/package/teds"
arch="all"
license="BSD-3-Clause"
_phpv=82
_php=php$_phpv
depends="$_php-common"
makedepends="$_php-dev"
source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir"/$_extname-$pkgver

build() {
	phpize$_phpv
	./configure --prefix=/usr --with-php-config=/usr/bin/php-config$_phpv
	make
}

check() {
	make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
}

package() {
	make INSTALL_ROOT="$pkgdir" install
	local _confdir="$pkgdir"/etc/$_php/conf.d
	install -d $_confdir
	echo "extension=$_extname" > $_confdir/$_extname.ini
}

sha512sums="
24950e4a2f6b346fb83eb639ba7333d3408e549ef8b9e25a8dbd210474c5adaa35dcaf373ed96c361a09d72ae7c1fdf58c24d9a373df099b50877a41b311fe28  php-pecl-teds-1.3.0.tar.gz
"
